	<?php
	// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );

		global $mosConfig_absolute_path, $mosConfig_live_site, $mosConfig_sitename, $database, $mosConfig_caching, $mosConfig_cachepath, $mainframe, $mosConfig_dbprefix, $mosConfig_sef, $mosConfig_db, $mosConfig_lifetime, $mosConfig_debug, $mosConfig_host, $mosConfig_offline, $mosConfig_debug_db, $mosConfig_debug_lang, $mosconfig_cache_handler, $mosConfig_sef_rewrite;

		$width 	= 400;	// width of 100%
		$tabs 	= new mosTabs(0);


		$tabs->startPane("mcaabout");
		$tabs->startTab("About","system-page");
		?>

		


<table border="0" cellspacing="2" cellpadding="2" id="jts-container" class="adminform">
  <tr>
    <th colspan="3">
      Mambo Tools Suite
    </th>
  </tr>
	<tr>
      <td width="170" valign="top" style="padding-left: 15px;" class="left-col">
	  <p style="border: 1px solid #C0C0C0; padding: 5px; margin: 5px; background-color: #FFFFFF; font-size: 9px; text-align: center;" align="center">Developed By<br /><a href="http://forum.mambo-foundation.org/member.php?u=8465" target="_mambo"><img src="components/com_mts/images/chazmts.jpg" align="center" border="0"><br />CharlieBrown</a><br/><br /><a href="http://www.justmambo.com.au/" target="_justmambo"><img src="components/com_mts/images/justmambo.jpg" align="center" border="0"></a></p>

	  </td>
	  <td valign="top" style="padding-left: 3%; padding-right: 3%; padding-top: 0px;">




<div class="help">
<h1>What Are MTS and HISA?</h1><br />
<p>
The Mambo forums see many posts regarding Installation or Performance issues, Permissions and Security questions. To assist with such questions and to highlight many of the common problems seen the following tools have been developed to help end-users and the Mambo Working Group Teams quickly and efficiently resolve these issues in the fastest time possible with the least amount of effort.
</p>

<p>
<strong>Mambo Tools Suite</strong> (MTS) and <strong>Mambo Health, Installation, Security Audit</strong> (HISA) have been developed with the sole purpose of providing Mambo end-users with a Self-Help Advice and Information system.
</p>

<ol>
  <li>
    <strong>Pre-Mambo Installation Server Environment Audit</strong><br />
    <em>Before you install Mambo check if your server is likely to support it fully or if your environment may need some modification</em>
  </li>
  <li>
    <strong>Post-Mambo Installation Server Environment Audit</strong><br />
	<em>Following the installation of Mambo keep your installation functioning and optimal with a variety of maintenance tools</em>

  </li>
  <li>
    <strong>Trouble-Shooting and Problem Resolution</strong><br />
    <em>Obtain additional diagnostic and configuration information to aid or speed up the process of problem resolution</em>
  </li>
</ol>

<br />

<table style="border-collapse: separate;" width="75%" cellspacing="2" cellpadding="2" border="0" align="center" class="col-left" width="75%">
<tbody>
  <tr>
	<th width="50%" valign="top"><h3>Mambo Tools Suite</h3>( StandAlone )</th>
	<th width="50%" valign="top"><h3>Mambo Tools Suite</h3>( Component )</th>
  </tr>

  <tr>
	<td valign="top">
    MTSsa on the other hand has been designed with a more advanced series of Diagnostic and Maintenance Tools, including the HISA tool-set. 
	Tools range from Pre-Installation environment checks, Post-Installation environment auditing, File and Directory permissions, extension 
	auditing to DataBase optimisation and maintenance. Still maintaining ease of installation and use, simply make a directory within your 
	Mambo installation folder, upload the files and open in your browser again.
    </td>
	<td valign="top">
    MTSc is the next generation of MTSsa, re-developed as a component for Mambo providing a similar tool-set as the StandAlone 
	versions, still including all the standard favourites but also introsucing additional security and functionality checking from within Mambo
	Tools range from server environment checks, Post-Installation Mambo environment auditing, File and Directory permissions, 
	extension auditing to DataBase maintenance. Still maintaining ease of installation and use, simply install just like any other Mambo component.
    </td>
  </tr>

  <tr>
    <td valign="middle" align="center">
	<div style='height: 70px; max-height: 70px; border: 1px solid #C0C0C0; padding: 5px; margin: 5px; background-color: #FFFFFF; font-size: 9px; text-align: center;' align='center'><a target="_new" href="http://mambo-code.org/gf/project/mamboca/"><img src='components/com_mts/images/mca.gif' align='center' border='0'></a><br />
	<a target="_new" href="http://mambo-code.org/gf/project/mamboca/">Download MTSsa Here</a></div>
	</td>
	<td valign="middle" align="center">
	<div style='height: 70px; max-height: 70px; border: 1px solid #C0C0C0; padding: 5px; margin: 5px; background-color: #FFFFFF; font-size: 9px; text-align: center;' align='center'><a target="_new" href="http://mambo-code.org/gf/project/mamboca/"><img src='components/com_mts/images/mca.gif' align='center' border='0'></a><br />	
	<a target="_new" href="http://mambo-code.org/gf/project/mamboca/">Download MTSc Here</a></div>
	</td>
  </tr>

  <tr>
    <td colspan="2">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top">
	  <strong><u>Language Support</u></strong><br />
        &nbsp; English<br />
    </td>
	<td valign="top">
      <strong><u>Language Support</u></strong><br />
        &nbsp; English<br />
    </td>

  <tr>
    <td colspan="2">&nbsp;</td>
  </tr>
</tbody>
</table>
</div>


<div class="help">
<h1>What Do MTS and HISA Actually Do?</h1><br />

<h4>Mambo Health, Installation and Security Audit (HISA)</h4>
<div align="left">
Based on the server and end-user hosting account configuration variables an assessment is completed, providing feedback regarding the possibility of installation success if prior to installing Mambo alternatively, following Mambo installation, reporting on possible problematic configuration issues.
<br /><br />
  High security risk items severely penalise the assessment scale, whilst minor inconsistencies will only reduce the assessment scale by small increments. The Health Check report will make recommendations and suggestions on how to possibly resolve such issues.

</div>

<br /><br />

<div align="left">
  <blockquote>
    <strong>Initial Installation Audit</strong><br />
      &nbsp; Success Assessment scale<br />
      &nbsp; Latest Mambo v4.6.2 release<br />

      &nbsp; Non "Stable" version notification<br />
      &nbsp; High security risk notification<br />
  </blockquote>
<br />
  <blockquote>
    <strong>General Environment Audit</strong><br />
      &nbsp; <strong>Host information</strong><br />

      &nbsp;&nbsp;&nbsp; Platform<br />
      &nbsp;&nbsp;&nbsp; Architecture<br />
      &nbsp;&nbsp;&nbsp; Operating System<br />
      &nbsp;&nbsp;&nbsp; IP Address<br />
<br />

      &nbsp; <strong>Web-Server version</strong><br />
      &nbsp;&nbsp;&nbsp; Port<br />
      &nbsp;&nbsp;&nbsp; Configuration environment<br />
<br />
      &nbsp; <strong>PHP version</strong><br />

      &nbsp;&nbsp;&nbsp; Enabled common extensions<br />
<br />
      &nbsp; <strong>MySQL version</strong><br />
      &nbsp;&nbsp;&nbsp; Connection method<br />
<br />
      &nbsp; <strong>Mambo Configuration</strong><br />

      &nbsp;&nbsp;&nbsp; Online/Offline status<br />
      &nbsp;&nbsp;&nbsp; Live Site details<br />
      &nbsp;&nbsp;&nbsp; Configured/Actual Absolute Path<br />
      &nbsp;&nbsp;&nbsp; .htaccess use<br />
      &nbsp;&nbsp;&nbsp; Cache settings<br />

      &nbsp;&nbsp;&nbsp; SEF settings<br />
  </blockquote>
<br />
  <blockquote>
    <strong>Standard Mambo Pre-Installation Checks</strong><br />
      &nbsp; <strong>Extension Support</strong><br />
      &nbsp;&nbsp;&nbsp; zlib support<br />

      &nbsp;&nbsp;&nbsp; XML support<br />
      &nbsp;&nbsp;&nbsp; MySQL support<br />
      &nbsp;&nbsp;&nbsp; Save Session Path status<br />
<br />
      &nbsp; <strong>Security Settings</strong><br />

      &nbsp;&nbsp;&nbsp; Mambo RG_EMULATION status<br />
      &nbsp;&nbsp;&nbsp; PHP register_globals status<br />
<br />
      &nbsp; <strong>Recommended Settings</strong><br />
      &nbsp;&nbsp;&nbsp; Safe Mode status<br />

      &nbsp;&nbsp;&nbsp; Display Errors status<br />
      &nbsp;&nbsp;&nbsp; File Uploads status<br />
      &nbsp;&nbsp;&nbsp; Magic Quotes GPC status<br />
      &nbsp;&nbsp;&nbsp; Magic Quotes Runtime status<br />
      &nbsp;&nbsp;&nbsp; Output Buffering status<br />

      &nbsp;&nbsp;&nbsp; Session Auto Start status<br />
<br />
      &nbsp; <strong>Directory and File Mode Check</strong><br />
  </blockquote>
</div>

<br /><br />

<h4>Mambo Diagnostic</h4>

<div align="left">
A "hash" comparison of the installed Mambo files and the original Mambo Distribution release files is performed. The Diagnostic report
provides feedback of changed, missing or potentially corrupt files within the Mambo installation allowing the end-user to determine if there are potentially going to be installation problems if run prior to completing the Web-Installer or possibly solving post installation issues caused by FTP upload corruption or unauthorised modification of core files and potential security risks associated with poorly coded extensions allowing direct access to content or scripts.
</div>
<br /><br />

<div align="left">
  <blockquote>
    <strong>Standard Checks Performed</strong><br />
      &nbsp; <strong>Security Status</strong><br />
      &nbsp;&nbsp;&nbsp; register_globals setting<br />

      &nbsp;&nbsp;&nbsp; RG_EMULATION setting<br />
<br />
      &nbsp; <strong>Missing Files</strong><br />
<br /> 
      &nbsp; <strong>Corrupt or Modified Files</strong><br />
<br />
      &nbsp; <strong>Misisng Direct Access Validation</strong><br />

  </blockquote>
</div>

<br /><br />

<div align="left">
  <blockquote>
    <strong>Standard Checks Performed</strong><br />
      &nbsp; <strong>Security Status</strong><br />
      &nbsp;&nbsp;&nbsp; register_globals setting<br />

      &nbsp;&nbsp;&nbsp; RG_EMULATION setting<br />
<br />
      &nbsp; <strong>Unexpected New and Uploaded Files</strong><br />
<br />
      &nbsp; <strong>Missing Files</strong><br />
<br /> 
      &nbsp; <strong>Corrupt or Modified Files</strong><br />

<br />
      &nbsp; <strong>Missing Direct Access Validation</strong><br />
  </blockquote>
</div>

<br /><br />
<h4>Permissions Auditing</strong></h4>
<div align="left">
Permissions auditing provides the end-user with a comprehensive view of all Directories and Files within the Mambo installation, including their ownership, current pemrissions mode and Web-Server accessibility and Write capability.
<br /> <br />
  Working on the assumption of 755 for Directories and 644 for Files as the permissions base and being the generally accepted best practice,
the Mambo Tools Suite Permissions Audit report will determine and highlight any permissions not below these modes in the following manner;

</div>
<br /><br />

<div align="left">
  <blockquote>
    <strong>Directories and Files</strong><br />
      &nbsp; <font color="#009933">Green</font>&nbsp;&nbsp;&nbsp; Generally sane and acceptable<br />
      &nbsp; <font color="#0000cc">Blue</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Elevated pemrissions but could still be acceptable<br />

      &nbsp; <font color="#ff0000">Red</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; World-Writable, potential of a security exposure<br />
	  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
	  ( <font size="1" color="#ff0000"><span style="background-color: rgb(255, 255, 0);">name also highlighted yellow</span></font> )<br />
<br />
    <strong> Files Only</strong><br />

    &nbsp; <font color="#ff0000">Warning Triangle</font> : Potentially suspect file found<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	(<font size="1"> .pl, .cgi, .zip, .tar, .tar.gz, these should be investigated </font>)<br />
    &nbsp; Size and Last Modified Date<br />

  </blockquote>
</div>

<br /><br />

<h4>Extensions Auditing</strong></h4>
<div align="left">
This section of MTS provides feedback to the end-user relating to currently installed Components, Modules and Mambots, the report includes Name, Version/Release, author contact details and a description of its purpose. To assist with security management and control each extension is colour coded to differentiate between Mambo Core extensions and 3rd Party Developer extensions.<br />
</div>
<br /><br />

<div align="left">
  <blockquote>

    <strong>Extension Differentiation </strong><br />
    &nbsp; <font color="#009933">Green</font>&nbsp;&nbsp;&nbsp; Mambo Core extension<br />
    &nbsp; <font color="#ff0000">Red</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3rd Party supplied extension<br />
  </blockquote>

</div>

<br /><br />

<h4>DB Maintenance</strong></h4>
<div align="left">
Providing a simple interface in to the Health of the Mambo Database, the MTS DB Maintenance routine initially provides the end-user with details of MySQL backend connection and performs a database table-space Health and Status check and Stale Sessions check. There is also provision made for the end-user to immediately attempt a table repair, clear Stale Sessions and subsequently "Optimise" the Mambo tables, cleaning up allocated but unused space potentially improving the perfomance of the database and thus the Mambo Web Site in the front-end.<br />

<br />
DB Maintenance automatically runs a table-space health check, confirming that all the standard required Mambo tables are present, readable and useable. Any errors found during these checks will be highlighted in red, if required and possible, DB Maintenance will attempt to repair any damaged or corrupt Mambo core tables. The #__session table is also checked for Stale Sessions, displaying all current entries and highlighting those that are stale based on the $mosConfig_lifetime variable in configuration.php.<br /> 

<br />
Selecting the "Optimise Now" button will activate the Database Optimisation routines of MySQL and is not run automatically when entering this section of MTS.<br /><br />

<em>Database Optimisation should only be run during quiet or offline periods to avoid the potential to effect front-end performance or possibility of table corruption.</em><br />
</div>

<br /><br />

</div>


      <td width="170" valign="top" style="padding-right: 15px;" class="right-col">
	<?php	  
/****
***** NOT IMPLEMENTED YET

/***********************************************************************
* Problem: JC file directory path name changes with every version change
************************************************************************
	$MTScxml = "http://joomlacode.org/gf/download/docmanfileversion/631/16238/MTScheck.xml";
	$versioning=file_get_contents($MTScxml);
	fopen($MTScxml, "r");

        if (preg_match('#<MTScversion>(.*)</MTScversion>#', $versioning, $MTSLATEST)) {
		// Debug
		//  echo "- ". $MTSLVER[1] ." -";
		$MTSLVER = $MTSLATEST[1];
		}

		$MTSquery = "SELECT * FROM ".$mosConfig_dbprefix."MTS";
		$MTSresult = mysql_query ($MTSquery);
			while ( $MTSrun = mysql_fetch_array($MTSresult) )
			{
			$MTSCVER = $MTSrun['MTSver'];
			// Debug
			//echo "MTSVER: ".$MTSCVER;


				// Does the CurrentVERSION = LatestVERSION
				if ($MTSCVER == $MTSLVER) {
					echo "<div class='msg-good'>";
					echo "<b>Mambo Tools Suite<br />Version Check</b><br /><br />";
					echo "Mambo Tools Suite Version <b>". $MTSLVER."</b> is up to date.";
					echo "</div>";
				} else {
					echo "<div class='msg-advise'>";
					echo "<b>Mambo Tools Suite<br />Version Check</b><br /><br />";
					echo "Mambo Tools Suite Version ". $MTSCVER." has been updated.<br /><br />";
					echo "Please download the latest Version <a href='http://joomlacode.org/gf/project/MTS/frs/?action=FrsReleaseBrowse&frs_package_id=2860' target='_MTS'><b>".$MTSLVER."</b></a> from JoomlaCode";
					echo "</div>";
				}

			}
****/
?>	  
	  </td>
    </tr>
</table>


<?php
		$tabs->endTab();
		$tabs->startTab("Contrib","contributions");
?>


<table border="0" cellspacing="2" cellpadding="2" id="MTS-container" class="adminform">
  <tr>
    <th colspan="3">Mambo Tools Suite</th>
  </tr>
	<tr>
      <td width="170" valign="top" style="padding-left: 15px;" class="left-col">
	  <p style="border: 1px solid #C0C0C0; padding: 5px; margin: 5px; background-color: #FFFFFF; font-size: 9px; text-align: center;" align="center">Developed By<br /><a href="http://forum.mambo-foundation.org/member.php?u=8465" target="_mambo"><img src="components/com_mts/images/chazmts.jpg" align="center" border="0"><br />CharlieBrown</a><br/><br /><a href="http://www.justmambo.com.au/" target="_justmambo"><img src="components/com_mts/images/justmambo.jpg" align="center" border="0"></a></p>

	  </td>
	  <td valign="top" style="padding-left: 3%; padding-right: 3%; padding-top: 0px;">


<div class="help">
<h1>Contributions</h1><br />
	<table border="0" cellpadding="1" cellspacing="2" width="99%">
	<tr>
		<td colspan="3" class="left-col"><b>Major contributors to Mambo Tools Suite.</b></td>
		<td width="9%">&nbsp;</td>
		<td colspan="3" class="left-col"><b>Major supporters of Mambo Tools Suite.</b></td>
	</tr>
	<tr>
		<td width="10%">&nbsp;</td><td width="15%">&nbsp;</td><td width="30%">&nbsp;</td>
		<td>&nbsp;</td>
		<td width="12%">&nbsp;</td><td width="12%">&nbsp;</td><td width="12%">&nbsp;</td>
	</tr>
	<tr>
		<td class="left-col">CharlieBrown</td><td>Translation</td><td>English (AU)</td>
		<td>&nbsp;</td>
		<td class="left-col"><a href="http://opensourcecommunity.org/" target="_new">AmyStephens</a></td><td class="left-col"><a href="http://justopensource.com.au" target="_new">justOPENSOURCE</a></td><td class="left-col"></td>
	</tr>
	<tr>
		<td class="left-col">WebSmurf</td><td>Diagnostics</td><td>Adapted from Mambo Diagnostic</td>
		<td>&nbsp;</td>
		<td class="left-col"></td><td class="left-col"></td><td class="left-col"></td>
	</tr>
	<tr>
		<td class="left-col"></td><td></td><td></td>
		<td>&nbsp;</td>
		<td class="left-col"></td><td class="left-col"></td><td class="left-col"></td>
	</tr>
	<tr>
		<td class="left-col"></td><td></td><td></td>
		<td>&nbsp;</td>
		<td class="left-col"></td><td class="left-col"></td><td class="left-col"></td>
	</tr>
	<tr>
		<td class="left-col"></td><td></td><td></td>
		<td>&nbsp;</td>
		<td class="left-col"></td><td class="left-col"></td><td class="left-col"></td>
	</tr>
	<tr>
		<td class="left-col"></td><td></td><td></td>
		<td>&nbsp;</td>
		<td class="left-col"></td><td class="left-col"></td><td class="left-col"></td>
	</tr>
	<tr>
		<td class="left-col"></td><td></td><td></td>
		<td>&nbsp;</td>
		<td class="left-col"></td><td class="left-col"></td><td class="left-col"></td>
	</tr>
	</table>

	<br /><br />

      <td width="170" valign="top" style="padding-right: 15px;" class="right-col">&nbsp;</td>
    </tr>
</table>


<?php
		$tabs->endTab();
		$tabs->endPane();
?>